From 5f3c901acc28bf701a37cbc9b0d014a82129fbab Mon Sep 17 00:00:00 2001 From: "vhanquez@kneesa.uk.xensource.com" Date: Thu, 16 Feb 2006 14:26:02 +0000 Subject: [PATCH] Fix Makefile problem when "gcc -v" includes a '/' and convert | to / to avoid the same problem with '|'. Original patch from Jos Vos, modified to prevent a '|' problem. From: Jos Vos Signed-off-by: Vincent Hanquez --- xen/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/Makefile b/xen/Makefile index 6ae3de42f4..751bae2083 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -91,7 +91,7 @@ include/xen/compile.h: include/xen/compile.h.in include/xen/banner.h -e 's/@@whoami@@/$(shell whoami)/g' \ -e 's/@@domain@@/$(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown]))/g' \ -e 's/@@hostname@@/$(shell hostname)/g' \ - -e 's/@@compiler@@/$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1)/g' \ + -e 's|@@compiler@@|$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1 | sed -e "s;|;/;")|g' \ -e 's/@@version@@/$(XEN_VERSION)/g' \ -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \ -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ -- 2.30.2